<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  a
  <iframe src="http://b.zxl.com:3000/domain/b.html" frameborder="0" id="bIframe" onload="load()"></iframe>
  <script>
    document.domain = "zxl.com";
    const ifrmare = document.getElementById('bIframe');
    function load() {
      console.log(ifrmare.contentWindow.a);
    }
  </script>
</body>
</html>